<div>
    <h2>Регистрация</h2>
    <form action="<?php echo url_for('@user_registration') ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?> class="register_table">
        <table>
        <?php foreach ($form as $widget): ?>
        
            <tr>
                <?php if($widget->getName() != '_csrf_token'):
                    echo "<td>".$widget->renderRow()."</td>";
                else:
                    echo $widget->render();
                endif; ?>
            </tr>
            <?php endforeach; ?>
        <tr>
            <td><input type="submit" name="btnSave" class="register_btn_submit" value="Зарегистрироваться" /></td>
            <td></td>
        </tr>
        </table>
    </form>
</div>